#pragma once
#include <iostream>
#include <string>
#include <cstring>
#include <unistd.h>
#include <memory>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/wait.h>



enum Common
{
    OK,
    USAGE_ERR,
    SOCKET_ERR,
    READ_ERR,
    CONNECT_ERR,
    FOCK_ERR
};

class NoCopy
{
public:
    NoCopy(){}
    ~NoCopy(){}
    NoCopy(const NoCopy&) = delete;
    NoCopy& operator=(NoCopy) = delete;
};

#define CONV(addr) ((sockaddr*)&addr)
